package com.topisv.tms.repository;


import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.WorkGuaranteeTask;

/**
 * 保修单打印任务
 * @author hwx
 *
 */
public interface WorkGuaranteeTaskDao extends PagingAndSortingRepository<WorkGuaranteeTask, Long>,JpaSpecificationExecutor<WorkGuaranteeTask>{
	
	@Query("select w from WorkGuaranteeTask w where w.taskCode =?1)")
	WorkGuaranteeTask findByTaskCode(String taskCode);
}
